package com.aloda.annotation;

import com.aloda.constant.EmpConstant;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 权限校验
 *
 * @author aloda
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface AdminAuthCheck {

    /**
     * 必须有某个角色
     *
     * @return
     */
    int mustRole() default EmpConstant.IS_ADMIN;

}

